package database;
import redis.clients.jedis.Jedis;

//String url = "jdbc:mysql:// localhost:3306/us?serverTimezone=GMT%2B8";
public class RedisTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("127.0.0.1",6379);
        jedis.hset("valentine","pw","233333");
        jedis.hset("valentine","name","jiawei");
        String result = jedis.hget("111111","pw");
        String result2 = jedis.hget("111111","name");
        System.out.println(result);
        System.out.println(result2);
        jedis.close();
    }
}
